package org.diancai.diancai.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.diancai.diancai.entity.User;
import org.springframework.security.core.userdetails.UserDetailsService;

public interface UserService extends IService<User>, UserDetailsService {
    // 根据用户名查询用户（用于认证）
    User getByUsername(String username);
    // 根据用户ID查询权限列表
    String[] getPermsByUserId(Integer userId);
}